<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 
<%@ taglib prefix="pg" tagdir="/WEB-INF/tags" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>商品大类列表</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.tabfont01 {	
	font-family: "宋体";
	font-size: 9px;
	color: #555555;
	text-decoration: none;
	text-align: center;
}
.font051 {font-family: "宋体";
	font-size: 12px;
	color: #333333;
	text-decoration: none;
	line-height: 20px;
}
.font201 {font-family: "宋体";
	font-size: 12px;
	color: #FF0000;
	text-decoration: none;
}
.button {
	font-family: "宋体";
	font-size: 14px;
	height: 37px;
}
html { overflow-x: auto; overflow-y: auto; border:0;} 
-->
</style>
<link href="<c:url value="/styles/ad/css.css"/>" rel="stylesheet" type="text/css" />
<link href="<c:url value="/styles/ad/style.css"/>" rel="stylesheet" type="text/css" />
<SCRIPT language=JavaScript>
function selectAll(){
	var obj = document.fom.elements;
	for (var i=0;i<obj.length;i++){
		if (obj[i].name == "delid"){
			obj[i].checked = true;
		}
	}
}

function unselectAll(){
	var obj = document.fom.elements;
	for (var i=0;i<obj.length;i++){
		if (obj[i].name == "delid"){
			if (obj[i].checked==true) obj[i].checked = false;
			else obj[i].checked = true;
		}
	}
}

function link(){
    document.getElementById("fom").action="addrenwu.htm";
   document.getElementById("fom").submit();
}

</SCRIPT>
</head>
<body>
<form name="fom" id="fom" method="post" action="">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  
  <tr>
    <td height="30">      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="62" background="<c:url value="/images/ad/nav04.gif"/>">
          </td>
        </tr>
    </table></td></tr>
  <tr>
    <td><table id="subtree1" style="DISPLAY: " width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td height="40" class="font42">
				<table width="100%" border="0" cellpadding="4" cellspacing="1" bgcolor="#464646" class="newfont03">
				 <tr class="CTitle" >
                    	<td height="22" colspan="7" align="center" style="font-size:16px">商品大类列表</td>
                  </tr>
                  <tr bgcolor="#EEEEEE">
                    <td width="20%">商品大类名称</td>
                    <td width="20%">查看所属小类</td>
                  </tr>
                  <c:forEach items="${cpdlslist}" var="cpdl">
				  <tr bgcolor="#FFFFFF">
                    <td >${cpdl.dlname}</td>
					<td><a href="<c:url value="/categories/getCpxls?dlcode=${cpdl.dlcode}"/>">查看小类</a></td>
                  </tr>
                  </c:forEach>
                <tr bgcolor="#EEEEEE">
				<td align="center" colspan="4"	style=" line-height: 40px">
						<pg:paging
							currentPage="${cpdls.pageNumber}"
							baseUrl="?keyword=${keyword}&start-time=${start}&end-time=${end}&reco-state=${state}&" total="${cpdls.totalRow}" 
							pageSize="55"></pg:paging>
				</td>
				</tr>
            </table></td>
        </tr>
      </table>
</td>
  </tr>
</table>
</form>
</body>
</html>